﻿@page
@model OpenPms.Areas.D.Pages.Setup.Rate.IndexModel
@{
    ViewBag.Title = "房价码";
}

<form id="FormGet">
    <wx-select-link asp-for-1=RateType asp-select-1="Html.GetEnumSelectList<ERateType>()"
                    asp-link-text-2="添加" asp-page-2="./Edit"/>
</form>

<wx-list asp-items=Items
         asp-for-1=Item.Name asp-for-2=Item.CheckinTime asp-for-3=Item.CheckoutTime
         asp-page="./Edit" asp-route-id=Item.Id />

@section scripts
{
    <script>
        $(function () {
            $("#RateType").change(function () {
                $("#FormGet").submit();
            });
        });
    </script>
}